.wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  min-height: 0; /* Allow flex items to shrink */
}

.messageListWrapper {
  position: relative;
  flex: 1;
  min-height: 0;
}

.messageList {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-5);
  height: 100%;
  padding: var(--spacing-4);
  overflow-x: hidden; /* Prevent horizontal scrolling */
  overflow-y: scroll;
  scroll-behavior: smooth; /* Smooth scrolling */
}
